package yf.mall.service;

import yf.mall.entity.CouponEntity;
import yf.mall.vo.CouponVo;
import com.yf.service.BaseService;
import java.io.InputStream;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

import org.springframework.web.multipart.MultipartFile;

/**
 * 卡券Service接口
 *
 * 
 * 
 * @date ${datetime}
 */
public interface CouponService extends BaseService<CouponEntity> {

    /************自动生成**************/
    List<CouponVo> findVo(CouponVo vo);

        CouponVo getVo(Long id);

     int updateVo(CouponVo vo);

       int saveVo(CouponVo vo);

    void downLoad(HttpServletResponse response, List<CouponVo> list);

    void upload(InputStream file);

    /***********BACK***********/

    void cancel(String orderNO);

    List<CouponEntity> findByUserId(Long userId);

    List<CouponEntity> findByUserIdAct(Long userId);




    /***********API***********/


}
